package com.example.demo.service;

import com.example.demo.exception.ServiceException;
import com.example.demo.param.vo.ResponseVO;

public interface IResponseService {

    /**
     * 我的回答
     * @param userId
     * @param page
     * @param pageSize
     * @return
     * @throws ServiceException
     */
    ResponseVO getMyRes(String userId , Integer page, Integer pageSize) throws ServiceException;

    /**
     * 新增回答
     * @param userId
     * @param questionId
     * @param responseContent
     * @return
     */
    Boolean insert(String userId , String questionId ,String responseContent) throws  ServiceException;

    /**
     * 删除回答
     * @param id
     * @return
     */
    Boolean delete(String id) throws ServiceException;

    /**
     * 修改回答
     * @param userId
     * @param responseContent
     * @return
     */
    Boolean update(String userId, String responseContent) throws ServiceException;
}
